package com.mihu.stmall.front.service.impl;

import com.mihu.stmall.front.entity.Category;
import com.mihu.stmall.front.mapper.CategoryMapper;
import com.mihu.stmall.front.service.CategoryService;

import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("CategoryService")
@AllArgsConstructor
public class CategoryServiceImpl implements CategoryService {

    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getParent() {
        return categoryMapper.selectParent();
    }
}
